# Contributor: Feng Shu <tumashu@163.com>

_realname=rime-emoji
pkgbase=mingw-w64-${_realname}
pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}"
pkgver=0.0.0.20210909
_commit=fc13f2caf2f02de8a5096c9de3a003d0f9a9f5b4
pkgrel=1
pkgdesc="Emoji support for rime (mingw-w64)"
arch=('any')
mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clangarm64' 'clang32')
license=('LGPL')
url="https://github.com/rime/rime-emoji"
source=("https://github.com/rime/rime-emoji/archive/${_commit}/rime-emoji-${_commit}.tar.gz")
sha512sums=('1f104058974a19721269e5df51de70667533e20c26c485b8d59ec5c5322130ae3d680a49a097168f1a03ace23333a41f847ef70123b14789235f1e173080ec65')

package() {
  cd "rime-emoji-${_commit}"
  install -Dm644 emoji_suggestion.yaml -t "${pkgdir}${MINGW_PREFIX}/share/rime-data/"
  install -Dm644 opencc/* -t "${pkgdir}${MINGW_PREFIX}/share/rime-data/opencc/"
}
